package com.dongdong.android.demo.ui.login;

import com.dongdong.android.framework.http.requestentity.reqUserEntity;

/**
 * Created by dongdong on 2018/3/29.
 */

public class LoginPresenter extends LoginContract.Presenter {
    @Override
    public void onStart() {

    }

    @Override
    public void login(reqUserEntity entity) {
        mRxManager.add(mModel.login(entity).subscribe(res -> mView.onLoginResult(res), e -> mView.onResultError(e.toString())));

    }
}
